package org.erepublik.company.thread;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class CountryListener  implements ServletContextListener {

    public void contextDestroyed(ServletContextEvent arg0) {
    }

    public void contextInitialized(ServletContextEvent arg0) {
        System.out.println("odpalam watek updatujacy informacje o krajach...");
        CountryDataUpdater foodUpdater = new CountryDataUpdater(1000*60*90);
        foodUpdater.start();
    }

}